﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    /// <summary>
    /// 赏罚标准
    /// </summary>
    public interface IDesertService
    {
        Task<int> AddDesertAsync(string description,decimal desertPrice);
        Task<int> EditDesertAsync(int id, string description, decimal desertPrice);
        Task<int> DeleteDesertAsync(int id);
        Task<List<DesertDto>> QueryDesertAllAsync();
        Task<DesertDto> QueryDesertByIdAsync(int id);
        Task<List<DesertDto>> QueryDesertByNameAsync(string description);
    }
}
